package com.example.blogslogin_and_register.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 用户表
 * @author 啦啦啦
 * @TableName user_info
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class UserInfo implements Serializable {
    /**
     * 用户id
     */
    private Integer userid;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 性别
     */
    private String sex;

    /**
     * 密码
     */
    private String password;

    /**
     * 生日
     */
    private Date bitday;

    /**
     * 头像
     */
    private String img;

    /**
     * 个性签名
     */
    private String sign;

    /**
     * 收益
     */
    private BigDecimal inc;

    /**
     * 手机号
     */
    private Integer mobile;

    private static final long serialVersionUID = 1L;

    public UserInfo(String password, Integer mobile) {
        this.password = password;
        this.mobile = mobile;
    }

    public UserInfo( Integer mobile) {
        this.password = password;
        this.mobile = mobile;
    }
}